﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.SqlClient;


public partial class Family_Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      //  Response.Write(XJX.Page.Helper.MD5("12345678"));
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string connstr = System.Configuration.ConfigurationManager.ConnectionStrings["DataConn"].ConnectionString; 
        SqlConnection Connection = new SqlConnection(connstr);
        Connection.Open();

        string storedProcName = "test";
        SqlCommand command = new SqlCommand(storedProcName, Connection);
        command.CommandType = CommandType.StoredProcedure;

        Response.Write(command.ExecuteNonQuery().ToString());
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Write("");
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        string url = "https://www.cnblogs.com/images/xml.gif";

        Response.Write(System.IO.Path.GetFileName(url));
    }
}